<template>
  <el-form-item label="ID">
    <el-input v-model="selectedOptions.name" disabled />
  </el-form-item>
  <el-form-item label="name">
    <el-input v-model="selectedWidget.name" disabled />
  </el-form-item>

  <el-form-item label="选中状态的值，只有在绑定对象类型为array时有效。">
    <el-input v-model="selectedOptions.value" />
  </el-form-item>
  <el-form-item label="多选框文本">
    <el-input v-model="selectedOptions.label" />
  </el-form-item>
  <el-form-item label="选中时的值">
    <el-input v-model="selectedOptions.trueValue" />
  </el-form-item>
  <el-form-item label="没有选中时的值">
    <el-input v-model="selectedOptions.falseValue" />
  </el-form-item>
  <el-form-item label="是否禁用">
    <el-switch v-model="selectedOptions.disabled" />
  </el-form-item>
  <el-form-item label="当前是否勾选">
    <el-switch v-model="selectedOptions.checked" />
  </el-form-item>
</template>

<script setup>
defineOptions({
  name: "checkboxButtonAttribute",
  inheritAttrs: false,
});
let $props = defineProps({
  selectedWidget: {
    type: Object,
    required: true,
  },
  selectedOptions: {
    type: Object,
    required: true,
  },
});
</script>

<style lang="scss" scoped></style>
